package com.ruoyi.sqlbuilder.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据库信息对象 sbr_database
 *
 * @author yanzy
 * @date 2021-05-09
 */
public class SbrDatabase extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 数据库名称
     */
    @Excel(name = "数据库名称")
    private String databaseName;

    /**
     * 数据库地址
     */
    @Excel(name = "数据库地址")
    private String host;

    /**
     * 端口号
     */
    @Excel(name = "端口号")
    private Integer port;

    /**
     * 有效标识
     */
    @Excel(name = "有效标识")
    private Integer validFlag;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String userName;

    /**
     * 密码
     */
    @Excel(name = "密码")
    private String password;

    /**
     * 数据库版本
     */
    @Excel(name = "数据库版本")
    private Integer driverType;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDatabaseName(String databaseName) {
        this.databaseName = databaseName;
    }

    public String getDatabaseName() {
        return databaseName;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getHost() {
        return host;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getPort() {
        return port;
    }

    public void setValidFlag(Integer validFlag) {
        this.validFlag = validFlag;
    }

    public Integer getValidFlag() {
        return validFlag;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setDriverType(Integer driverType) {
        this.driverType = driverType;
    }

    public Integer getDriverType() {
        return driverType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("databaseName", getDatabaseName())
                .append("host", getHost())
                .append("port", getPort())
                .append("validFlag", getValidFlag())
                .append("userName", getUserName())
                .append("password", getPassword())
                .append("driverType", getDriverType())
                .toString();
    }
}
